﻿<views:BaseSpeakerReadEntityView 
    x:Class="Conference.UX.WinPhone.Pages.SpeakerReadEntityView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mvx="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:views="clr-namespace:Conference.UX.WinPhone.Pages"
    xmlns:phonefx="clr-namespace:TeaLightV5.Foundation.Ux.WinPhone.Controls;assembly=TeaLightV5.Foundation.Ux.WinPhone"
    xmlns:tcl="clr-namespace:TeaLightV5.Foundation.UX.WinPhone.Controls;assembly=TeaLightV5.Foundation.Ux.WinPhone"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mvx:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <phone:Pivot Title="Speaker">
            <phone:PivotItem Header="Speakers">

                <!--ContentPanel - place additional content here-->
                <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
                    <ScrollViewer Margin="12,17,0,28" Grid.Row="0">
                        <StackPanel x:Name="SpeakerPanel" Width="444" DataContext="{Binding Data}">
                            <TextBlock   Text="{Binding Id}"/>


                            <TextBlock Text="Name" Style="{StaticResource PhoneTextSubtleStyle}"/>
                            <TextBlock Text="{Binding Name}" Style="{StaticResource PhoneTextExtraLargeStyle}"/>
                            
                            <TextBlock Text="Title" Style="{StaticResource PhoneTextSubtleStyle}"/>
                            <TextBlock Text="{Binding Title}" Style="{StaticResource PhoneTextExtraLargeStyle}"/>
                            
                            <TextBlock Text="Company" Style="{StaticResource PhoneTextSubtleStyle}"/>
                            <TextBlock Text="{Binding Company}" Style="{StaticResource PhoneTextExtraLargeStyle}"/>
                            <TextBlock Text="Biography" Style="{StaticResource PhoneTextSubtleStyle}"/>
                            <TextBlock x:Name="Biography"  Text="{Binding Biography}" TextWrapping="Wrap"  
                                       Style="{StaticResource PhoneTextExtraLargeStyle}"/>

                        </StackPanel>
                    </ScrollViewer>
                </Grid>
            </phone:PivotItem>
        </phone:Pivot>

        <tcl:BindableApplicationBar>
            <tcl:BindableApplicationBarIconButton IconUri="/images/appbar.edit.rest.png" Text="Edit" tcl:AppBarItemClick.Command="{Binding EditCommand}" />
            <tcl:BindableApplicationBarIconButton IconUri="/images/appbar.delete.rest.png" Text="Delete" tcl:AppBarItemClick.Command="{Binding DeleteCommand}" />
        </tcl:BindableApplicationBar>
    </Grid>
</views:BaseSpeakerReadEntityView>
